package com.lc.service;

import com.cnpc.framework.base.entity.BaseResponse;
import com.cnpc.framework.base.entity.SysFile;
import com.cnpc.framework.base.service.BaseService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UtilService extends BaseService {

    public BaseResponse setUserInfo(String userId, Object obj, String exColumn) throws Exception;
    public BaseResponse setDevInfo(String devId, Object obj) throws Exception;
    SysFile uploadFile(MultipartFile file, String userId , String type, HttpServletRequest request);
    SysFile uploadFile(MultipartFile file, String base, String dir, String userId , String type);
    SysFile uploadFile(MultipartFile file, String base, String dir, String userId , String type ,
                       String docName , String docType , String remark ,String devID);

    List<String> getOrgIdsOfOrgAndBellow(String userId, String orgId)  throws Exception;
    public  String getOrgIdsBellow(String userId, String orgId) throws Exception;

    List<String> getOrgIds(String userId,String orgId)  throws Exception;
    public  String getOrgIdsStr(String userId,String orgId) throws Exception;


    List<String> getOrgIds1(String userId)  throws Exception;
    List<String> getOrgIds2(String userId,String orgId)  throws Exception;
    public String getQrCode(String data, String prefix, String basePath) throws Exception;
}
